'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
  let {_id,module,partnerChangeUploadModule,partners,project,relevanceUserID,vaildDate} = event;
  let updateResult = await db.collection('projects').doc(_id).update({
	  module,
	  partnerChangeUploadModule,
	  partners,
	  project,
	  vaildDate
  })
  
  if(updateResult.affectedDocs !== 0){
	  return {
		  status:0,
		  msg:"修改成功"
	  }
  }
  
  return {
	  status:-1,
	  msg:"稍后重试"
  }
};
